package xyz.yohao.flow.bean.dto.flow;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@ApiModel(value = "流程类别")
@Data
public class WorkflowCategoryDto implements Serializable {

    /**
     * 主键
     */
    public Long id;
    /**
     * 类别名称
     */
    @ApiModelProperty(value = "类别名称")
    @NotBlank(message = "流程类别不能为空")
    @Size(max = 100, message = "流程类别名称长度应该小于{max}")
    public String categoryName;

    /**
     * 上级id
     */
    @ApiModelProperty(value = "上级id")
    public Long parentId;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Size(max = 200, message = "备注长度应该小于{max}")
    public String remark;

}
